/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.uccart_project.util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;


public class EntityManagerFactorySingleton {
    
    private final static EntityManagerFactory INSTANCE = Persistence.createEntityManagerFactory("UCCART_ProjectPU");

    private EntityManagerFactorySingleton() {}

    public static EntityManagerFactory getFactory() { return EntityManagerFactorySingleton.INSTANCE; }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        throw new CloneNotSupportedException();
    }
}
